package com.li.general.buttons
{
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.events.MouseEvent;

public class Button extends MovieClip
{
    // Declared in Flash.
    public var hit:Sprite;

    public function Button()
    {
        super();
        stop();

        // Init hit.
        hit.alpha = 0;
        hit.buttonMode = hit.useHandCursor = true;
        hit.addEventListener(MouseEvent.MOUSE_OVER, hitMouseOverHandler);
        hit.addEventListener(MouseEvent.MOUSE_OUT, hitMouseOutHandler);
    }

    // Mouse events.
    protected function hitMouseOverHandler(evt:MouseEvent):void
    {
        // Override.
    }
    protected function hitMouseOutHandler(evt:MouseEvent):void
    {
        // Override.
    }
}
}